package com.pingtai.indent.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;

public class UserBaseIndentType implements Serializable{
	
	
	private static final long serialVersionUID = -8826211443805469782L;
	private Integer id;
	private String name;
	private String name2;
	private Float price;
	private String unit;
	private String remark;
	private String url;
	private Integer sort;
	private String url2;
	private String pre;
	private Integer minAmount;
	private String batchMehod;
	private Integer maxAmount;
	private UserBaseIndentTypeClassify baseIndentTypeClassify;
	private Integer unit2;
	private Integer enable;
	private UserBaseIndentType parentBaseIndentType;
	private Set<UserBaseIndentType> childrenBaseIndentType;
	private boolean hasChild=false;
	private String pointOut;
	
	private List childrenIndentTypeList;
	private String stateType;
	private Integer sort2;
	private Integer level;
	
	private String parentIdString;
	private Date updateDate;
	private String color;
	
	
	
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public String getPointOut() {
		return pointOut;
	}
	public void setPointOut(String pointOut) {
		this.pointOut = pointOut;
	}
	public String getParentIdString() {
		return parentIdString;
	}
	public void setParentIdString(String parentIdString) {
		this.parentIdString = parentIdString;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getSort2() {
		return sort2;
	}
	public void setSort2(Integer sort2) {
		this.sort2 = sort2;
	}
	public String getStateType() {
		return stateType;
	}
	public void setStateType(String stateType) {
		this.stateType = stateType;
	}
	public List getChildrenIndentTypeList() {
		if(childrenIndentTypeList!=null&&childrenIndentTypeList.size()>0) return childrenIndentTypeList;
		List list = new ArrayList();
		Object[] objs = childrenBaseIndentType.toArray();
		for(int i=0;i<objs.length;i++){
			list.add(objs[i]);
		}
		return list;
	}
	public void setChildrenIndentTypeList(List childrenIndentTypeList) {
		this.childrenIndentTypeList = childrenIndentTypeList;
	}
	
	
	public String getName2() {
		return name2;
	}

	public void setName2(String name2) {
		this.name2 = name2;
	}

	public boolean isHasChild() {
		return hasChild;
	}

	public void setHasChild(boolean hasChild) {
		this.hasChild = hasChild;
	}

	public Set<UserBaseIndentType> getChildrenBaseIndentType() {
		return childrenBaseIndentType;
	}

	public void setChildrenBaseIndentType(
			Set<UserBaseIndentType> childrenBaseIndentType) {
		this.childrenBaseIndentType = childrenBaseIndentType;
	}

	public UserBaseIndentType getParentBaseIndentType() {
		return parentBaseIndentType;
	}

	public void setParentBaseIndentType(UserBaseIndentType parentBaseIndentType) {
		this.parentBaseIndentType = parentBaseIndentType;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public Integer getUnit2() {
		return unit2;
	}

	public void setUnit2(Integer unit2) {
		this.unit2 = unit2;
	}

	public UserBaseIndentTypeClassify getBaseIndentTypeClassify() {
		return baseIndentTypeClassify;
	}

	public void setBaseIndentTypeClassify(
			UserBaseIndentTypeClassify baseIndentTypeClassify) {
		this.baseIndentTypeClassify = baseIndentTypeClassify;
	}

	public Integer getMaxAmount() {
		return maxAmount;
	}

	public void setMaxAmount(Integer maxAmount) {
		this.maxAmount = maxAmount;
	}

	public String getBatchMehod() {
		return batchMehod;
	}

	public void setBatchMehod(String batchMehod) {
		this.batchMehod = batchMehod;
	}

	public String getPre() {
		return pre;
	}

	public void setPre(String pre) {
		this.pre = pre;
	}

	public Integer getMinAmount() {
		return minAmount;
	}

	public void setMinAmount(Integer minAmount) {
		this.minAmount = minAmount;
	}

	public String getUrl2() {
		return url2;
	}

	public void setUrl2(String url2) {
		this.url2 = url2;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	

}
